package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @CreateTime 2025-02-19
 * @Description 用户信息表
 */

@Data
@TableName(value = "user")
public class UserInfo {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Id",type = IdType.AUTO)
    private Long id;

    @TableField(value = "Name")
    private String name;

    @TableField(value = "Password")
    private String password;

    @TableField(value = "Email")
    private String email;

    @TableField(value = "Addr")
    private String addr;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "Create_Tm",fill = FieldFill.INSERT)
    private LocalDateTime createTm;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "Update_Tm",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTm;

}
